package icu.xuyijie.springbootlearning2.chapter4.async;

/**
 * @author 徐一杰
 * @date 2025/03/07 10:35
 * @description 异步 和 同步相反，异步编程也叫多线程编程
 */
public class MultipleThreadTest {

    public static void main(String[] args) {
        new Thread(() -> {
            try {
                Thread.sleep(3000);
                System.out.println("A执行完毕");
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }).start();

        System.out.println("B执行完毕");
    }

}
